package com.hdoit.ares.logical.goods.dao.impl;

import java.util.List;

import org.springframework.stereotype.Component;

import com.tennetcn.common.dao.base.IFinderExpression;
import com.tennetcn.common.dao.base.impl.SuperDao;
import com.tennetcn.common.utils.FinderExpressionFactory;
import com.hdoit.ares.logical.goods.dao.IGoodsInfoDao;
import com.hdoit.ares.logical.goods.model.GoodsInfo;
/**
 * @author      yujinhui
 * @email       
 * @createtime  2018年02月06日 10:43:47
 * @comment
 */
@Component
public class GoodsInfoDaoImpl extends SuperDao<GoodsInfo> implements IGoodsInfoDao{

	@Override
	public List<GoodsInfo> queryListByIds(List<String> ids) {
		IFinderExpression finderExpression=FinderExpressionFactory.createExpression();
		finderExpression.select("*")
						.from(GoodsInfo.class)
						.andWhereInString("id", ids);
		
		return queryList(finderExpression);
	}

}